I/O

_________________________________________________
                      accept
 *284*

Input names: [Title]

Input types: [string]

Defaults: Title = "Value"

Output names: Result

Output types: <any>

Description: 
Value window with title Title is opened for editing, displaying the value NULL. If window is dismissed with the Cancel button, Result is NULL. Otherwise Result is the last value displayed.

Compiler: Not supported.

See also:  answer, answer-v, ask, select

_________________________________________________
                                         answer
 *284*

Input names: Prompt;  Button1;  [Button2;  [Button3]]

Input types: string;  <any>;  [<any>;  [<any>]]

Output names: ButtonClicked

Output types: <any>

Description: 
Displays a modal dialog with a Prompt and 1, 2, or 3 horizontally arranged buttons labeled with text as specified by Button1 to Button3.  Prograph uses textual representations of Button1 to Button3 if they are not already strings.  The ButtonClicked output is the textual representation of the button clicked by the user.

See also:  accept, answer-v, ask, select

_________________________________________________
                                         answer-v
 *285*

Input names: Prompt;  Button1;  [Button2;  [Button3]]

Input types: string;  <any>;  [<any>;  [<any>]]

Output names: ButtonClicked

Output types: <any>

Description: 
Displays a modal dialog with a Prompt and 1, 2, or 3 vertically arranged buttons labeled with text as specified by Button1 to Button3.  Prograph uses textual representations of Button1 to Button3 if they are not already strings.  The ButtonClicked output is the textual representation of the button clicked by the user.
See also:  accept, answer, ask, select

_________________________________________________
                     ask
 *285*

Input names: [Prompt];  [DefaultValue]

Input types: [string];  [<any>]

Defaults: Prompt = "Enter value"; DefaultValue = ""

Output names: Value

Output types: <any>

Description: 
A modal dialog is opened displaying the string Prompt, two buttons Cancel and OK, and an editable area containing DefaultValue, which cannot be a Macintosh type or an instance of a class. If dialog is dismissed with the Cancel button, Value is DefaultValue; otherwise Value is the last value displayed.

See also:  accept, answer, answer-v, select

_________________________________________________
                             display
 *286*

Input names: Value;  [Title]

Input types: <any>;  [string]

Defaults: Title = "Value"

Description: 
Value window with title Title is opened, displaying Value, with editing disabled. 

Compiler: Not supported.

See also:  show

_________________________________________________
 
                                        print-window
*286*

Input names:
Heading;  aWindow;  [Frame]

Input types: string;  Window;  [boolean]

Defaults:
Frame = FALSE

Description: 
Heading is printed, followed by contents of aWindow. If Frame is TRUE, the rectangle outlining the window is printed.

See also:  print-text

_________________________________________________
                             select
 *286*

Input names: Strings;  [Prompt]

Input types: list;  [string]

Output names: SelectedString

Output types: string | null

Description: 
A modal dialog is opened with a scrolling list showing Strings, and buttons Select and Cancel. If dialog is dismissed by Select button and a string was selected, then SelectedString is the selected string. Otherwise SelectedString is NULL.
See also:  answer, answer-v, ask, accept

_________________________________________________
                                       set-dialog-font
*287*

Input type: 
Integer

Description:
Sets the font used for text in the dialogs used by the ask, answer, answer-v, select, and show primitives. If Font is 0, the System font is used.

_________________________________________________
                         show
 *278*

Input names: Item1;  [Item2;  ...]

Input types: <any>;  [<any>;  ...]

Description: 
A modal dialog is opened displaying a string obtained by concatenating textual representations of Item1, …. Inputs cannot be instances of classes or Macintosh types.

See also:  display